@extends('admin.layout-adm')
@section('title','创建新专家')
@section('content')
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
            <div class="col-md-12" id="content" >
                <div class="app_content_div" id="app_content_div_301Index">
                    <h3>专家列表</h3>
                </div>
                <div style="float:right;"><button type="button" class="btn btn-primary" onclick="window.location.href='/adm/expert/add'">新增专家</button></div>

                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>姓名</th>
                        <th>职称</th>
                        <th>科室</th>
                        <th>医院</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($experts as $v)
                        <tr>
                            <td>{{$v->id}}</td>
                            <td>{{$v->name}}</td>
                            <td>{{$v->ks}}</td>
                            <td>{{$v->zc}}</td>
                            <td>{{$v->yy}}</td>
                            <td>
                                <form action="/expert/{{$v->id}}" method="post">
                                    @csrf
                                    @method('DELETE')
                                    <button type="submit" class="btn-danger">删除</button>
                                </form>
                            </td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </div>
@endsection
